/*
 * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
 *
 * SPDX-License-Identifier: Unlicense OR CC0-1.0
 */
#include <stdint.h>
#include "soc/soc_caps.h"

#define TEST_COUNT 5

typedef struct test_xts_data {
    uint16_t data_size;
    uint32_t data_offset;
    uint8_t ciphertext[128];
} test_xts_data_t;

typedef struct test_ecdsa_data {
    uint8_t ecdsa_p192_pubx[24];
    uint8_t ecdsa_p192_puby[24];
    uint8_t ecdsa_p256_pubx[32];
    uint8_t ecdsa_p256_puby[32];
    uint8_t ecdsa_p384_pubx[48];
    uint8_t ecdsa_p384_puby[48];
} test_ecdsa_data_t;

typedef struct test_hmac_data {
    uint8_t message[257];
    uint8_t hmac_result[32];
} test_hmac_data_t;

typedef struct test_ds_data {
#if SOC_RSA_MAX_BIT_LEN == 4096
    uint8_t ds_message[4096 / 8];
    uint8_t ds_encrypted_input_params[1584];
    uint8_t ds_result[4096 / 8];
#elif SOC_RSA_MAX_BIT_LEN == 3072
    uint8_t ds_message[3072 / 8];
    uint8_t ds_encrypted_input_params[1200];
    uint8_t ds_result[3072 / 8];
#endif
    size_t ds_key_size;
    uint8_t ds_encrypted_input_params_iv[16];
} test_ds_data_t;

typedef struct test_data {
    uint8_t init_key[32];
    uint8_t k2_info[64];
    // [0] for XTS-AES-128 / ECDSA-P192 / HMAC / DS, [1] for XTS-AES-256 / ECDSA-P256
    // [2] for ECDSA-P384-H, [3] for ECDSA-P384-L
    uint8_t k1_encrypted[4][32];
    uint8_t plaintext_data[128];
    union {
        test_xts_data_t xts_test_data[TEST_COUNT];
        test_ecdsa_data_t ecdsa_test_data;
        test_hmac_data_t hmac_test_data;
        test_ds_data_t ds_test_data;
    };
} test_data_aes_mode_t;

typedef struct test_data_ecdh0 {
    uint8_t plaintext_data[128];
    uint8_t k1[2][32];
    uint8_t k1_G[2][64];
} test_data_ecdh0_mode_t;

// For 32-byte k1 key
test_data_aes_mode_t test_data_xts_aes_128 = {
    .init_key = { 0xee, 0x89, 0x95, 0xda, 0x3c, 0x8a, 0x43, 0x83, 0xa9, 0x4b, 0x25, 0x5b, 0x04, 0x7e, 0xf1, 0x57, 0xb8, 0xe8, 0x06, 0x45, 0x87, 0x76, 0xee, 0x1b, 0x4e, 0x2e, 0x55, 0xa7, 0x1f, 0x25, 0xe1, 0x94 },
    .k2_info = { 0x8f, 0x96, 0x33, 0x47, 0xe1, 0xa5, 0x57, 0xe9, 0x2a, 0x51, 0xa9, 0xbe, 0x48, 0x84, 0x25, 0x4e, 0x6f, 0x50, 0x1c, 0x45, 0xdb, 0xb6, 0xfa, 0xeb, 0x35, 0xd2, 0x27, 0x91, 0x3f, 0x67, 0x57, 0xd9, 0xcb, 0x55, 0xe4, 0x2b, 0x18, 0x16, 0xe7, 0xce, 0x6c, 0xf2, 0x58, 0x71, 0x17, 0x76, 0x2a, 0x86, 0x05, 0xe7, 0x37, 0x45, 0x71, 0x34, 0xca, 0xaf, 0x60, 0x07, 0xdf, 0xf4, 0xd2, 0xee, 0x3d, 0x4b },
    .k1_encrypted = { { 0x37, 0xcf, 0x5b, 0x9e, 0x08, 0x26, 0x36, 0x31, 0xd7, 0x51, 0x3c, 0x33, 0x0d, 0x5d, 0x03, 0xad, 0x48, 0x6e, 0xbe, 0x82, 0xce, 0xa9, 0xc8, 0xd5, 0x98, 0x11, 0x24, 0xcc, 0x83, 0xf8, 0xf9, 0x53 }, {  } },
    .plaintext_data = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f, 0x80 },
    .xts_test_data = {
		{.data_size = 32, .data_offset = 0x160000, .ciphertext = {0xba, 0xa3, 0xa4, 0x8f, 0x77, 0xac, 0xb5, 0x96, 0xc2, 0x9c, 0x76, 0xc3, 0x0f, 0x0e, 0xc5, 0xf1, 0xa8, 0x44, 0x4e, 0x05, 0x79, 0x0e, 0xa4, 0x1f, 0x72, 0x0a, 0xa5, 0xa9, 0xd8, 0x7c, 0xe8, 0xf5}},
		{.data_size = 64, .data_offset = 0x160100, .ciphertext = {0xf9, 0x09, 0x32, 0x28, 0xdc, 0x0b, 0x44, 0x8a, 0xbc, 0x06, 0x0e, 0xfb, 0x0e, 0x58, 0xfa, 0x3a, 0x16, 0x27, 0x41, 0xab, 0xde, 0xa7, 0x2b, 0xf5, 0xcc, 0xe0, 0x8c, 0xde, 0xda, 0x3b, 0x9b, 0x39, 0x04, 0xdf, 0x02, 0x5d, 0x87, 0xe8, 0x19, 0x2f, 0x87, 0x3a, 0x77, 0x00, 0x9c, 0x38, 0xb1, 0xfb, 0xae, 0xd8, 0xa7, 0x39, 0x4b, 0x89, 0x83, 0x4d, 0x4a, 0x9c, 0xee, 0x50, 0x3e, 0xd1, 0x64, 0xd2}},
		{.data_size = 128, .data_offset = 0x160200, .ciphertext = {0x03, 0xb0, 0xa3, 0x50, 0x55, 0x50, 0xdb, 0xc9, 0x6b, 0x39, 0xb2, 0x19, 0xd2, 0x57, 0xf8, 0x7b, 0x07, 0x3c, 0xe0, 0x01, 0xec, 0xc1, 0x38, 0x92, 0x8c, 0x96, 0x64, 0xbf, 0x18, 0xde, 0x12, 0x18, 0xa5, 0xca, 0x3a, 0x97, 0x6b, 0x7d, 0x0d, 0xe5, 0x15, 0xa1, 0x2d, 0x28, 0xdb, 0xb5, 0xe0, 0x2b, 0x7e, 0x6a, 0x9a, 0xe0, 0x16, 0x7b, 0xbf, 0x3c, 0x49, 0x05, 0x4e, 0x46, 0x92, 0x63, 0x7b, 0x49, 0x22, 0x60, 0x6a, 0xde, 0x96, 0x02, 0xd0, 0x24, 0x03, 0x69, 0x3b, 0xfe, 0x5f, 0xfe, 0xe4, 0x0c, 0xe3, 0x77, 0x40, 0x98, 0x43, 0xe9, 0x2a, 0xaf, 0x35, 0x57, 0x6f, 0x60, 0x08, 0x43, 0xd4, 0xb3, 0x7e, 0xb6, 0x2d, 0x19, 0x56, 0xc3, 0x94, 0x49, 0x93, 0x94, 0x3d, 0x8a, 0xf9, 0xbe, 0xb4, 0x19, 0x63, 0x20, 0x09, 0xae, 0x45, 0x00, 0x33, 0x4e, 0xa4, 0xbf, 0x09, 0x74, 0x78, 0x03, 0x13, 0x0b}},
		{.data_size = 16, .data_offset = 0x160300, .ciphertext = {0x8c, 0x37, 0x62, 0x84, 0x37, 0xb0, 0x80, 0x0f, 0xf2, 0xb2, 0xa8, 0x1b, 0x1e, 0x7f, 0xeb, 0x1b}},
		{.data_size = 32, .data_offset = 0x160400, .ciphertext = {0x05, 0x19, 0x1b, 0x8f, 0x30, 0xf1, 0x4d, 0x74, 0xc6, 0xf1, 0x3d, 0x9c, 0xcb, 0xbe, 0x7d, 0x06, 0x1a, 0xf4, 0xdd, 0x41, 0x23, 0x1e, 0x61, 0xe0, 0xaa, 0x14, 0x6a, 0x16, 0xac, 0x4c, 0x01, 0x67}},
	}
};

// For 64-byte k1 key
test_data_aes_mode_t test_data_xts_aes_256 = {
	.init_key = {0xee, 0x89, 0x95, 0xda, 0x3c, 0x8a, 0x43, 0x83, 0xa9, 0x4b, 0x25, 0x5b, 0x04, 0x7e, 0xf1, 0x57, 0xb8, 0xe8, 0x06, 0x45, 0x87, 0x76, 0xee, 0x1b, 0x4e, 0x2e, 0x55, 0xa7, 0x1f, 0x25, 0xe1, 0x94},
	.k2_info = {0x8f, 0x96, 0x33, 0x47, 0xe1, 0xa5, 0x57, 0xe9, 0x2a, 0x51, 0xa9, 0xbe, 0x48, 0x84, 0x25, 0x4e, 0x6f, 0x50, 0x1c, 0x45, 0xdb, 0xb6, 0xfa, 0xeb, 0x35, 0xd2, 0x27, 0x91, 0x3f, 0x67, 0x57, 0xd9, 0xcb, 0x55, 0xe4, 0x2b, 0x18, 0x16, 0xe7, 0xce, 0x6c, 0xf2, 0x58, 0x71, 0x17, 0x76, 0x2a, 0x86, 0x05, 0xe7, 0x37, 0x45, 0x71, 0x34, 0xca, 0xaf, 0x60, 0x07, 0xdf, 0xf4, 0xd2, 0xee, 0x3d, 0x4b},
	.k1_encrypted = {{0x37, 0xcf, 0x5b, 0x9e, 0x08, 0x26, 0x36, 0x31, 0xd7, 0x51, 0x3c, 0x33, 0x0d, 0x5d, 0x03, 0xad, 0x48, 0x6e, 0xbe, 0x82, 0xce, 0xa9, 0xc8, 0xd5, 0x98, 0x11, 0x24, 0xcc, 0x83, 0xf8, 0xf9, 0x53}, {0x84, 0xf7, 0x09, 0x06, 0xa3, 0xf2, 0xc7, 0x5f, 0x08, 0x43, 0xfd, 0xe9, 0x2e, 0xab, 0x32, 0xf3, 0x31, 0xd4, 0x4f, 0xf4, 0xf6, 0x1d, 0xa1, 0xc7, 0x1f, 0x2c, 0x11, 0xca, 0x9f, 0x21, 0x26, 0xaa}},
	.plaintext_data = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f, 0x80},
    .xts_test_data = {
		{.data_size = 32, .data_offset = 0x160000, .ciphertext = {0x3d, 0xab, 0x5b, 0x96, 0x8f, 0xa5, 0x5b, 0x6f, 0xcb, 0x82, 0xcb, 0x3a, 0x94, 0xa0, 0xa6, 0x3e, 0xc6, 0x59, 0xde, 0x61, 0x0e, 0xb4, 0x8f, 0x99, 0x03, 0xff, 0xaf, 0x24, 0x11, 0x6e, 0x3b, 0x3b}},
		{.data_size = 64, .data_offset = 0x160100, .ciphertext = {0x75, 0xaa, 0x68, 0xcd, 0x98, 0x29, 0x70, 0xe2, 0xaf, 0xb2, 0x7c, 0x39, 0x0a, 0x50, 0xac, 0x08, 0x01, 0x71, 0x7a, 0xdb, 0x1f, 0x04, 0xb8, 0x5e, 0x4d, 0x8d, 0x4c, 0xc4, 0x0d, 0xde, 0xcf, 0x5e, 0x1f, 0xa0, 0xfb, 0x74, 0xf6, 0xb2, 0x51, 0xe0, 0x69, 0x84, 0x47, 0x61, 0x71, 0xc5, 0x92, 0x8c, 0x12, 0x69, 0x77, 0xfb, 0xdf, 0xe8, 0xd2, 0x86, 0xc3, 0xbc, 0xd2, 0x2d, 0x8c, 0xbc, 0x4b, 0x59}},
		{.data_size = 128, .data_offset = 0x160200, .ciphertext = {0xb9, 0x2b, 0xf5, 0x02, 0x84, 0xba, 0x1b, 0xda, 0xf8, 0x85, 0x2c, 0xba, 0x36, 0x42, 0x16, 0xa7, 0x83, 0x22, 0x37, 0xab, 0x41, 0x9d, 0x84, 0xde, 0x81, 0x4c, 0xa5, 0x2e, 0x40, 0x65, 0xd2, 0xc9, 0x30, 0x81, 0x5c, 0x61, 0x86, 0x22, 0xc3, 0xec, 0xf7, 0x7f, 0x66, 0x02, 0x73, 0x7b, 0xf2, 0x22, 0x17, 0x6d, 0x41, 0x90, 0xda, 0xb1, 0x4e, 0x2f, 0xbe, 0xe2, 0x0b, 0x22, 0x4e, 0xb4, 0x6a, 0x90, 0x13, 0x1f, 0x9b, 0xf2, 0x78, 0x03, 0x4f, 0xb5, 0x37, 0x62, 0x6d, 0x01, 0x56, 0xfc, 0xe3, 0xfa, 0xe7, 0x19, 0xbf, 0x81, 0x05, 0x9d, 0x7f, 0xef, 0xbe, 0xe4, 0x3a, 0xa8, 0xa0, 0x98, 0x74, 0x68, 0x10, 0xe4, 0x95, 0x7a, 0x93, 0xf0, 0x75, 0x68, 0x09, 0xf3, 0x63, 0xe9, 0x1a, 0xbb, 0x2a, 0xf4, 0x1e, 0xa0, 0x45, 0x61, 0x5b, 0x1f, 0x2d, 0x08, 0xfd, 0xed, 0x79, 0x61, 0x11, 0xad, 0x57, 0xb6}},
		{.data_size = 16, .data_offset = 0x160300, .ciphertext = {0x0f, 0x8f, 0xff, 0x33, 0x23, 0x1c, 0x63, 0x5f, 0xae, 0x91, 0x87, 0x13, 0x5d, 0x27, 0xd0, 0xef}},
		{.data_size = 32, .data_offset = 0x160400, .ciphertext = {0x29, 0x23, 0x17, 0x47, 0xb3, 0xd3, 0x19, 0xf4, 0x9d, 0x6b, 0x3c, 0x82, 0x49, 0x83, 0x25, 0x7a, 0x3d, 0xfc, 0x51, 0xca, 0x7c, 0x96, 0x5e, 0x1e, 0xcf, 0x7a, 0x85, 0x99, 0x0c, 0x33, 0x17, 0xe4}},
	}
};

test_data_aes_mode_t test_data_ecdsa = {
    .init_key = { 0xee, 0x89, 0x95, 0xda, 0x3c, 0x8a, 0x43, 0x83, 0xa9, 0x4b, 0x25, 0x5b, 0x04, 0x7e, 0xf1, 0x57, 0xb8, 0xe8, 0x06, 0x45, 0x87, 0x76, 0xee, 0x1b, 0x4e, 0x2e, 0x55, 0xa7, 0x1f, 0x25, 0xe1, 0x94 },
    .k2_info = { 0x8f, 0x96, 0x33, 0x47, 0xe1, 0xa5, 0x57, 0xe9, 0x2a, 0x51, 0xa9, 0xbe, 0x48, 0x84, 0x25, 0x4e, 0x6f, 0x50, 0x1c, 0x45, 0xdb, 0xb6, 0xfa, 0xeb, 0x35, 0xd2, 0x27, 0x91, 0x3f, 0x67, 0x57, 0xd9, 0xcb, 0x55, 0xe4, 0x2b, 0x18, 0x16, 0xe7, 0xce, 0x6c, 0xf2, 0x58, 0x71, 0x17, 0x76, 0x2a, 0x86, 0x05, 0xe7, 0x37, 0x45, 0x71, 0x34, 0xca, 0xaf, 0x60, 0x07, 0xdf, 0xf4, 0xd2, 0xee, 0x3d, 0x4b },
    .k1_encrypted = {
        { 0xf2, 0x97, 0xcb, 0x28, 0xe0, 0x9b, 0xae, 0xc8, 0xa3, 0xbe, 0x53, 0xa0, 0xde, 0x43, 0xbe, 0xdd, 0xab, 0x93, 0x78, 0xf9, 0x05, 0x69, 0xd0, 0x8c, 0x80, 0x03, 0x07, 0x4c, 0x12, 0x17, 0x5a, 0xb3 },
        { 0x37, 0xcf, 0x5b, 0x9e, 0x08, 0x26, 0x36, 0x31, 0xd7, 0x51, 0x3c, 0x33, 0x0d, 0x5d, 0x03, 0xad, 0x48, 0x6e, 0xbe, 0x82, 0xce, 0xa9, 0xc8, 0xd5, 0x98, 0x11, 0x24, 0xcc, 0x83, 0xf8, 0xf9, 0x53 },
        { 0x48, 0x6e, 0xbe, 0x82, 0xce, 0xa9, 0xc8, 0xd5, 0x98, 0x11, 0x24, 0xcc, 0x83, 0xf8, 0xf9, 0x53, 0x1b, 0x44, 0xdf, 0x62, 0x72, 0x6e, 0xff, 0x10, 0xcf, 0x9b, 0xff, 0xac, 0xb3, 0x9f, 0xec, 0x22 },
        { 0x31, 0xd4, 0x4f, 0xf4, 0xf6, 0x1d, 0xa1, 0xc7, 0x1f, 0x2c, 0x11, 0xca, 0x9f, 0x21, 0x26, 0xaa, 0x37, 0xcf, 0x5b, 0x9e, 0x08, 0x26, 0x36, 0x31, 0xd7, 0x51, 0x3c, 0x33, 0x0d, 0x5d, 0x03, 0xad },
    },
    .ecdsa_test_data = {
        .ecdsa_p192_pubx = { 0x69, 0x45, 0x1d, 0x62, 0x28, 0xaf, 0x75, 0x07, 0x97, 0x93, 0xc3, 0xed, 0xf3, 0x28, 0x91, 0x4b, 0xc7, 0x3c, 0x33, 0xa6, 0x27, 0x24, 0x9a, 0xd6 },
        .ecdsa_p192_puby = { 0xe0, 0x15, 0xaa, 0x98, 0x78, 0x05, 0x4b, 0x4c, 0x25, 0xb4, 0xd2, 0x07, 0xf1, 0xef, 0xb0, 0x1e, 0x44, 0x0e, 0x24, 0x67, 0xb8, 0x54, 0x1b, 0xd2 },
        .ecdsa_p256_pubx = { 0x0e, 0xd7, 0x04, 0x7e, 0x9e, 0x6a, 0x06, 0xa1, 0xbf, 0x8d, 0x9d, 0xc7, 0x45, 0x66, 0xb8, 0x9d, 0xc4, 0x41, 0xa6, 0x0e, 0x7a, 0xfb, 0xac, 0x69, 0x7f, 0x55, 0x0a, 0x89, 0x2f, 0xac, 0xad, 0xb4 },
        .ecdsa_p256_puby = { 0x15, 0x21, 0x03, 0xb6, 0x56, 0x5c, 0x63, 0x4a, 0xfb, 0xd1, 0xa8, 0x7e, 0x2f, 0xe6, 0xb3, 0x6e, 0xc8, 0x2e, 0x60, 0x11, 0xce, 0x43, 0xd6, 0xd3, 0x5d, 0x53, 0x01, 0x22, 0xef, 0x21, 0xb5, 0x17 },
        .ecdsa_p384_pubx = { 0x6b, 0x2b, 0xaf, 0xca, 0x83, 0xe4, 0xd8, 0x39, 0x28, 0x52, 0xb8, 0x08, 0x12, 0xb6, 0x94, 0x39, 0xe0, 0xd4, 0xf4, 0x12, 0x3b, 0xd2, 0xbb, 0x2d, 0xc6, 0xa2, 0x1d, 0x28, 0x3a, 0xcb, 0x86, 0x02, 0xa9, 0x5d, 0x35, 0xeb, 0x28, 0x48, 0xe2, 0x1a, 0x99, 0x7c, 0x94, 0x26, 0xef, 0xb9, 0x87, 0x12 },
        .ecdsa_p384_puby = { 0xcd, 0x00, 0x76, 0xbe, 0x9f, 0x9c, 0x2d, 0xe0, 0x73, 0x3e, 0x8d, 0x0c, 0x4f, 0xe2, 0xc0, 0xb6, 0x0e, 0xf7, 0x0f, 0x7a, 0xd5, 0x4b, 0x18, 0xcd, 0xf9, 0xe6, 0xdc, 0x63, 0xa9, 0xf0, 0x03, 0x4f, 0xa4, 0x10, 0x78, 0x01, 0x3f, 0xc1, 0x55, 0x60, 0xc7, 0x53, 0x37, 0xb1, 0x3b, 0x77, 0x70, 0x2e },
    }
};

test_data_ecdh0_mode_t test_data_ecdh0 = {
    .plaintext_data = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f, 0x80 },
    .k1 = {
        { 0x35, 0xe4, 0x6d, 0x5e, 0x69, 0x5a, 0x23, 0x33, 0xf8, 0x30, 0x91, 0xb9, 0xeb, 0x96, 0x17, 0x25, 0x59, 0x87, 0xf7, 0xaf, 0xcb, 0x9a, 0xd8, 0xc9, 0xba, 0x7d, 0x9c, 0x22, 0x27, 0x47, 0x80, 0x03 },
        { 0x35, 0xe4, 0x6d, 0x5e, 0x69, 0x5a, 0x23, 0x33, 0xf8, 0x30, 0x91, 0xb9, 0xeb, 0x96, 0x17, 0x25, 0x59, 0x87, 0xf7, 0xaf, 0xcb, 0x9a, 0xd8, 0xc9, 0xba, 0x7d, 0x9c, 0x22, 0x27, 0x47, 0x80, 0x03 },
    },
    .k1_G = {
        { 0x0e, 0xd7, 0x04, 0x7e, 0x9e, 0x6a, 0x06, 0xa1, 0xbf, 0x8d, 0x9d, 0xc7, 0x45, 0x66, 0xb8, 0x9d, 0xc4, 0x41, 0xa6, 0x0e, 0x7a, 0xfb, 0xac, 0x69, 0x7f, 0x55, 0x0a, 0x89, 0x2f, 0xac, 0xad, 0xb4, 0x15, 0x21, 0x03, 0xb6, 0x56, 0x5c, 0x63, 0x4a, 0xfb, 0xd1, 0xa8, 0x7e, 0x2f, 0xe6, 0xb3, 0x6e, 0xc8, 0x2e, 0x60, 0x11, 0xce, 0x43, 0xd6, 0xd3, 0x5d, 0x53, 0x01, 0x22, 0xef, 0x21, 0xb5, 0x17 },
        { 0x0e, 0xd7, 0x04, 0x7e, 0x9e, 0x6a, 0x06, 0xa1, 0xbf, 0x8d, 0x9d, 0xc7, 0x45, 0x66, 0xb8, 0x9d, 0xc4, 0x41, 0xa6, 0x0e, 0x7a, 0xfb, 0xac, 0x69, 0x7f, 0x55, 0x0a, 0x89, 0x2f, 0xac, 0xad, 0xb4, 0x15, 0x21, 0x03, 0xb6, 0x56, 0x5c, 0x63, 0x4a, 0xfb, 0xd1, 0xa8, 0x7e, 0x2f, 0xe6, 0xb3, 0x6e, 0xc8, 0x2e, 0x60, 0x11, 0xce, 0x43, 0xd6, 0xd3, 0x5d, 0x53, 0x01, 0x22, 0xef, 0x21, 0xb5, 0x17 },
    }
};

test_data_aes_mode_t test_data_hmac = {
    .init_key = { 0xee, 0x89, 0x95, 0xda, 0x3c, 0x8a, 0x43, 0x83, 0xa9, 0x4b, 0x25, 0x5b, 0x04, 0x7e, 0xf1, 0x57, 0xb8, 0xe8, 0x06, 0x45, 0x87, 0x76, 0xee, 0x1b, 0x4e, 0x2e, 0x55, 0xa7, 0x1f, 0x25, 0xe1, 0x94 },
    .k2_info = { 0x8f, 0x96, 0x33, 0x47, 0xe1, 0xa5, 0x57, 0xe9, 0x2a, 0x51, 0xa9, 0xbe, 0x48, 0x84, 0x25, 0x4e, 0x6f, 0x50, 0x1c, 0x45, 0xdb, 0xb6, 0xfa, 0xeb, 0x35, 0xd2, 0x27, 0x91, 0x3f, 0x67, 0x57, 0xd9, 0xcb, 0x55, 0xe4, 0x2b, 0x18, 0x16, 0xe7, 0xce, 0x6c, 0xf2, 0x58, 0x71, 0x17, 0x76, 0x2a, 0x86, 0x05, 0xe7, 0x37, 0x45, 0x71, 0x34, 0xca, 0xaf, 0x60, 0x07, 0xdf, 0xf4, 0xd2, 0xee, 0x3d, 0x4b },
    .k1_encrypted = { { 0x92, 0x09, 0xe1, 0xb9, 0x45, 0x56, 0x38, 0x98, 0x6c, 0x83, 0xe2, 0xff, 0xc7, 0x82, 0x84, 0x69, 0x0a, 0xb4, 0xc7, 0x48, 0x84, 0xa4, 0xa0, 0xf6, 0x5c, 0xef, 0x4a, 0xd5, 0x70, 0x33, 0xfe, 0x7c }, {  } },
    .hmac_test_data = {
        .message = { 0x44, 0x65, 0x6c, 0x65, 0x6e, 0x69, 0x74, 0x69, 0x20, 0x76, 0x6f, 0x6c, 0x75, 0x70, 0x74, 0x61, 0x73, 0x20, 0x65, 0x78, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x62, 0x6f, 0x20, 0x65, 0x74, 0x20, 0x61, 0x73, 0x73, 0x75, 0x6d, 0x65, 0x6e, 0x64, 0x61, 0x2e, 0x20, 0x53, 0x65, 0x64, 0x20, 0x65, 0x74, 0x20, 0x61, 0x6c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x20, 0x6d, 0x69, 0x6e, 0x75, 0x73, 0x20, 0x71, 0x75, 0x69, 0x73, 0x2e, 0x20, 0x50, 0x72, 0x61, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x69, 0x75, 0x6d, 0x20, 0x63, 0x75, 0x70, 0x69, 0x64, 0x69, 0x74, 0x61, 0x74, 0x65, 0x20, 0x71, 0x75, 0x69, 0x61, 0x20, 0x6e, 0x65, 0x6d, 0x6f, 0x20, 0x65, 0x73, 0x74, 0x2e, 0x20, 0x4c, 0x61, 0x62, 0x6f, 0x72, 0x69, 0x6f, 0x73, 0x61, 0x6d, 0x20, 0x70, 0x61, 0x72, 0x69, 0x61, 0x74, 0x75, 0x72, 0x20, 0x75, 0x74, 0x20, 0x64, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x20, 0x74, 0x65, 0x6e, 0x65, 0x74, 0x75, 0x72, 0x2e, 0x20, 0x53, 0x75, 0x6e, 0x74, 0x20, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x20, 0x69, 0x75, 0x72, 0x65, 0x20, 0x61, 0x73, 0x70, 0x65, 0x72, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x20, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x61, 0x20, 0x75, 0x74, 0x20, 0x72, 0x65, 0x63, 0x75, 0x73, 0x61, 0x6e, 0x64, 0x61, 0x65, 0x2e, 0x20, 0x55, 0x74, 0x20, 0x71, 0x75, 0x69, 0x62, 0x75, 0x73, 0x64, 0x61, 0x6d, 0x20, 0x6f, 0x63, 0x63, 0x61, 0x65, 0x63, 0x61, 0x74, 0x69, 0x20, 0x75, 0x74, 0x20, 0x71, 0x75, 0x69, 0x20, 0x73, 0x69, 0x74, 0x20, 0x64, 0x69, 0x67, 0x6e, 0x69, 0x73, 0x73, 0x69, 0x6d, 0x6f, 0x73, 0x20, 0x65, 0x61, 0x71, 0x75, 0x65, 0x2e, 0x2e },
        .hmac_result = { 0xfe, 0xc4, 0x5b, 0xb8, 0x5a, 0x78, 0x83, 0x88, 0x61, 0x9d, 0x9f, 0x60, 0x4b, 0xca, 0x0e, 0xab, 0x0c, 0x91, 0x20, 0x09, 0x32, 0xcb, 0x9c, 0x66, 0xad, 0x4a, 0x3d, 0x71, 0xb9, 0xc6, 0x0c, 0x03 }
    }
};

test_data_aes_mode_t test_data_ds = {
    .init_key = { 0xee, 0x89, 0x95, 0xda, 0x3c, 0x8a, 0x43, 0x83, 0xa9, 0x4b, 0x25, 0x5b, 0x04, 0x7e, 0xf1, 0x57, 0xb8, 0xe8, 0x06, 0x45, 0x87, 0x76, 0xee, 0x1b, 0x4e, 0x2e, 0x55, 0xa7, 0x1f, 0x25, 0xe1, 0x94 },
    .k2_info = { 0x8f, 0x96, 0x33, 0x47, 0xe1, 0xa5, 0x57, 0xe9, 0x2a, 0x51, 0xa9, 0xbe, 0x48, 0x84, 0x25, 0x4e, 0x6f, 0x50, 0x1c, 0x45, 0xdb, 0xb6, 0xfa, 0xeb, 0x35, 0xd2, 0x27, 0x91, 0x3f, 0x67, 0x57, 0xd9, 0xcb, 0x55, 0xe4, 0x2b, 0x18, 0x16, 0xe7, 0xce, 0x6c, 0xf2, 0x58, 0x71, 0x17, 0x76, 0x2a, 0x86, 0x05, 0xe7, 0x37, 0x45, 0x71, 0x34, 0xca, 0xaf, 0x60, 0x07, 0xdf, 0xf4, 0xd2, 0xee, 0x3d, 0x4b },
    .k1_encrypted = { { 0x37, 0xcf, 0x5b, 0x9e, 0x08, 0x26, 0x36, 0x31, 0xd7, 0x51, 0x3c, 0x33, 0x0d, 0x5d, 0x03, 0xad, 0x48, 0x6e, 0xbe, 0x82, 0xce, 0xa9, 0xc8, 0xd5, 0x98, 0x11, 0x24, 0xcc, 0x83, 0xf8, 0xf9, 0x53 }, {  } },
    .ds_test_data = {
#if SOC_DS_SIGNATURE_MAX_BIT_LEN == 4096
        .ds_message = { 0x29, 0x35, 0xb7, 0x0d, 0x63, 0x95, 0xaf, 0x34, 0xc3, 0xc1, 0xe5, 0x21, 0xb8, 0x74, 0xb8, 0x38, 0x95, 0xe9, 0x10, 0xf6, 0x81, 0x7e, 0xf8, 0x65, 0x05, 0x59, 0x7f, 0x2b, 0xda, 0x85, 0xa9, 0xaa, 0xa6, 0xcf, 0xf7, 0xdf, 0xa7, 0x16, 0x08, 0x48, 0x02, 0x5c, 0x2b, 0x1c, 0xed, 0x92, 0xb6, 0x0c, 0xac, 0xd2, 0x7f, 0x70, 0x50, 0x1e, 0x5b, 0x4a, 0x32, 0xec, 0x19, 0xe8, 0xa3, 0x88, 0xca, 0x36, 0x83, 0x24, 0xe4, 0x5d, 0x1a, 0xf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xf7, 0x74, 0x6c, 0x6e, 0x66, 0x44, 0xb7, 0xd3, 0x8e, 0x09, 0x27, 0xf6, 0x7f, 0x1a, 0xd4, 0x2b, 0xc2, 0x57, 0xcc, 0xb3, 0x5e, 0x22, 0xc1, 0x82, 0x5d, 0xcc, 0x66, 0xc8, 0xb2, 0x86, 0x42, 0x83, 0xc4, 0xe7, 0xea, 0x70, 0x48, 0x20, 0x2a, 0x33, 0x54, 0xda, 0x46, 0x15, 0x64, 0x4b, 0x72, 0x97, 0x1a, 0x83, 0xe9, 0x6a, 0x65, 0x7a, 0xe0, 0xec, 0x0a, 0xe1, 0xbc, 0xe2, 0x0b, 0x1a, 0x1c, 0x39, 0x31, 0x15, 0x2b, 0xbf, 0xf8, 0x64, 0x00, 0x69, 0x1b, 0xa4 },
        .ds_encrypted_input_params = { 0x8b, 0x5a, 0x3f, 0x8b, 0xf0, 0x8a, 0x45, 0x00, 0x4e, 0x13, 0x97, 0x3b, 0x24, 0x50, 0x00, 0x11, 0x92, 0xfe, 0xb5, 0x51, 0xfa, 0x75, 0xbc, 0x95, 0xbf, 0x90, 0xad, 0xf1, 0x08, 0x1c, 0x44, 0xa6, 0xae, 0x7b, 0x51, 0x2e, 0x88, 0x59, 0xb3, 0xb4, 0x41, 0x9f, 0x3d, 0x01, 0x5d, 0x82, 0xe9, 0xcc, 0x94, 0x87, 0x2d, 0x17, 0x6b, 0x8f, 0x04, 0xc1, 0x93, 0xa1, 0x93, 0x8e, 0x73, 0xe6, 0x08, 0xeb, 0x9b, 0x9f, 0x24, 0x87, 0x27, 0x9b, 0xb8, 0x27, 0x30, 0xeb, 0x3a, 0x8f, 0x3c, 0x97, 0xce, 0x34, 0xa6, 0xa7, 0xdd, 0xa3, 0x66, 0x25, 0xf8, 0x39, 0x0a, 0xb9, 0xb6, 0x49, 0x62, 0x2d, 0x3e, 0xe5, 0xe4, 0x8e, 0x35, 0xbf, 0xf8, 0x8b, 0xb3, 0xc1, 0xa8, 0xc8, 0x48, 0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x77, 0x0a, 0x46 },
        .ds_key_size = 4096,
        .ds_result = { 0xf1, 0xdd, 0xd5, 0x9d, 0x73, 0x05, 0xc4, 0x21, 0x9c, 0x69, 0x5f, 0x04, 0x28, 0x30, 0x58, 0xc8, 0x77, 0x7b, 0xbf, 0x44, 0x9f, 0xd1, 0xdf, 0x2e, 0xac, 0x7c, 0x64, 0x92, 0x73, 0xf2, 0x70, 0x98, 0x7c, 0x80, 0x05, 0xf0, 0x1f, 0x90, 0xdb, 0x9d, 0x21, 0x60, 0x3d, 0x0f, 0x39, 0x16, 0xe1, 0x39, 0xab, 0x62, 0xa8, 0xc5, 0x43, 0x86, 0xb3, 0x5a, 0x99, 0x99, 0xae, 0x9c, 0x20, 0x02, 0xd6, 0x6f, 0x5e, 0x26, 0xd4, 0x12, 0x7f, 0xcd, 0xab, 0x43, 0xd1, 0x46, 0x72, 0x79, 0x1a, 0x1e, 0x2b, 0xcc, 0xb7, 0xe3, 0xf3, 0x7e, 0xd1, 0x31, 0x22, 0xe0, 0x61, 0x7d, 0x18, 0x3e, 0xcb, 0x94, 0xc9, 0xe0, 0x64, 0xf6, 0x4e, 0x7a, 0x7a, 0x3f, 0x8c, 0x80, 0xad, 0x68, 0x4c, 0x98, 0x3c, 0xc1, 0xe3, 0x0f, 0xc5, 0x4b, 0xbb, 0xa8, 0x5d, 0xad, 0xd0, 0x6d, 0x56, 0x92, 0xcf, 0x5f, 0x63, 0x83, 0x93, 0xa2, 0x52, 0xb1, 0x55, 0x11, 0xb6, 0xfc, 0xb2, 0x7d, 0xe4, 0x22, 0xb7, 0xfd, 0xf4, 0xf0, 0x6f, 0x4c, 0xa9, 0x4e, 0x30, 0xc6, 0xad, 0xb4, 0x1c, 0x30, 0xf4, 0x1e, 0x1c, 0xe4, 0x0f, 0x5a, 0x4d, 0x34, 0xd7, 0x91, 0xe1, 0xcd, 0x18, 0xfc, 0x77, 0x05, 0xa9, 0x5c, 0x72, 0xab, 0x79, 0x2a, 0xa8, 0x26, 0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0x30, 0x98, 0x64, 0xb3, 0x08, 0x47, 0xce, 0xb0, 0x93, 0xd1, 0x2b, 0xcd, 0xa4, 0x3d, 0xee, 0x52, 0x37, 0xfe, 0xd8, 0x55, 0x2b, 0x0e, 0x0c, 0xa3, 0x2d, 0x01, 0x9b, 0xfc, 0x65, 0x41, 0xa0, 0x81, 0x71, 0x43, 0x64, 0xd8, 0x1d, 0x8c, 0x36, 0xc2, 0xc8, 0xe7, 0x89, 0x84, 0xb7, 0xa7, 0x8e, 0xbd, 0x32, 0xf0, 0xe0, 0xa0, 0x5b, 0x47, 0x97, 0xe7, 0x81, 0x15, 0xa3, 0x24, 0x39, 0x40, 0x47, 0x17, 0x07, 0xe5, 0x35, 0x19, 0x81, 0x04, 0xdc, 0x57, 0xce, 0x52, 0xd4, 0xcd, 0xe7, 0xe4, 0x97, 0xb3, 0x1d, 0x60, 0x7b, 0xbb, 0xb5, 0x15, 0xb3, 0x4b, 0x27, 0xf1, 0xda, 0x2b, 0xd9, 0xe9, 0x4e, 0xca, 0x57, 0x1d, 0xb6, 0xde, 0x8d, 0x0f, 0x9e, 0xbd, 0xdb, 0xaf, 0xde, 0x69, 0x0a, 0xd6, 0x5a, 0x37, 0xc5, 0x38, 0x76, 0x33, 0x73, 0xc9, 0x07, 0xa6, 0xbb, 0x50, 0xa4, 0x31, 0x0e, 0x27, 0x50, 0xef, 0xab, 0x34, 0x7a, 0xe2, 0xb5, 0x42, 0xec, 0x0c, 0x63, 0x70, 0x2b, 0xed, 0x97, 0xee, 0xe4, 0x7b, 0x62, 0xc9, 0xaf, 0x02, 0x7b, 0xc6, 0x17, 0x43 },
#elif SOC_DS_SIGNATURE_MAX_BIT_LEN == 3072
        .ds_message = { 0x6e, 0xec, 0x39, 0xd5, 0xc7, 0x09, 0x68, 0x9f, 0xcd, 0xb6, 0x3e, 0x1c, 0x74, 0xa7, 0x03, 0x91, 0xe7, 0xbd, 0x26, 0x8b, 0xeb, 0xbe, 0x3f, 0x81, 0xf9, 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x6b, 0x00, 0x29, 0x8e, 0xfd, 0x27, 0x58, 0xfd, 0x7b, 0xf3, 0x53, 0x71, 0xd8, 0xc3, 0x7c, 0x26, 0xfc, 0x2b, 0xb4, 0xa6, 0xf3, 0x46, 0xc7, 0x92, 0xe1, 0xd2, 0x47, 0xc2, 0xaf, 0x4f, 0x10, 0xa8, 0x7c, 0x55, 0x26, 0x54, 0xbd, 0x69, 0x35, 0xf8, 0x55, 0x0a, 0x45, 0x11, 0x5c, 0x36, 0xc6, 0x20, 0x9d, 0x3e, 0x27, 0xd3, 0xf9, 0xb8, 0x62, 0x13, 0x26, 0x9e, 0x6d, 0xba, 0x9c, 0xe9, 0xec, 0xb7, 0x3d, 0x84, 0xf4, 0x0b, 0x8e, 0x59, 0xde, 0xc3, 0xd6, 0x1f, 0xe6, 0x05, 0x85, 0x96, 0x7d, 0xd5, 0x6d, 0x79, 0xd7, 0xb2, 0x17, 0x84, 0xd4, 0xaf, 0xfa, 0x03, 0x7f, 0xc7, 0x2e, 0x72, 0xa4, 0x06, 0xa1, 0xe3, 0x45, 0x30, 0x75, 0x4a, 0x10, 0xce, 0x1c, 0xa6, 0xc3, 0x18, 0x1e, 0x14, 0xcf, 0x31, 0xd5, 0xe1, 0x88, 0x57, 0x8a, 0xbc, 0x2d, 0x5d, 0x5d, 0x2c, 0x2a, 0x09, 0xaf, 0x51, 0x7c, 0x51, 0x06, 0xcc, 0xa9, 0x2e, 0x68, 0x00, 0x05, 0x1d, 0x40, 0x07, 0x05, 0x56, 0x7a, 0xba, 0xdf, 0x3b, 0x10, 0x38, 0x94, 0xb0, 0xf3, 0x87, 0xeb, 0x74, 0x7a, 0x17, 0xf6, 0x37, 0x00, 0xb4, 0x81, 0x3b, 0x21, 0x8b, 0xb6, 0x25, 0xd6, 0x90, 0x6f, 0x07, 0xbe, 0x54, 0x6e, 0x46, 0x55, 0xe8, 0x17 },
        .ds_encrypted_input_params = { 0x08, 0x02, 0x0e, 0x26, 0xd6, 0x3f, 0xe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 0xbd, 0xac, 0xdc, 0xde, 0xf0, 0x39, 0x88, 0xa1, 0x74, 0x01, 0x40, 0x55, 0x33, 0x16, 0x6e, 0xbb, 0xbb, 0xb2, 0x27, 0x9a, 0x21, 0x86, 0xef, 0xeb, 0xc6, 0xab, 0x1f, 0x98, 0xa4, 0xbf, 0x9d, 0x2a, 0x32, 0x68, 0x44, 0x50, 0x9e, 0xb0, 0x32, 0x46, 0xd6, 0x75, 0x38, 0x78, 0xb4, 0xd8, 0x43, 0xaf, 0xe2, 0x27, 0xd5, 0x90, 0xd8, 0x47, 0xbe, 0xdb, 0xd3, 0x0f, 0x2e, 0xbc, 0x5d, 0xea, 0x29, 0x98, 0xb0, 0xee, 0x0d, 0x10, 0x7b, 0xbb, 0x20, 0x01, 0x22, 0xd0, 0xc4, 0x3b, 0xec, 0xdf, 0x62, 0x83, 0xaa, 0xb6, 0x9a, 0xce, 0xaf, 0x57, 0xec, 0x81, 0xa4, 0x7f, 0x8b },
        .ds_key_size = 3072,
        .ds_result = { 0x23, 0x54, 0x4f, 0x7e, 0x5b, 0x54, 0x6f, 0xef, 0xc9, 0x9b, 0xb6, 0x35, 0x14, 0xe1, 0xeb, 0x58, 0xf8, 0x7d, 0x0a, 0x94, 0x24, 0x42, 0x87, 0xf0, 0x4a, 0x46, 0xb9, 0xe2, 0x85, 0xb3, 0x79, 0xed, 0x18, 0x66, 0xa5, 0x34, 0x56, 0x48, 0xd8, 0x42, 0x92, 0x06, 0xaf, 0x32, 0xd4, 0xc5, 0xf3, 0x4f, 0x12, 0x40, 0xec, 0x65, 0xe7, 0x8c, 0x9e, 0x5c, 0xd7, 0xb8, 0x69, 0x8d, 0x7a, 0x6c, 0xa0, 0x0d, 0x6f, 0x6b, 0xe8, 0xe1, 0xee, 0x39, 0xad, 0xc5, 0x40, 0x8e, 0x36, 0xd6, 0x45, 0xbe, 0x20, 0xd5, 0x7d, 0x01, 0xa6, 0x1d, 0x21, 0xe8, 0x3a, 0x79, 0x8c, 0x69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 0x17, 0x08, 0x1a, 0x71, 0xfb, 0x7f, 0x49, 0x32, 0x69, 0x7f, 0x86, 0x94, 0x42, 0x8f, 0x47, 0x68, 0x1d, 0x61, 0x6f, 0x11, 0x82, 0x76, 0x25, 0xbe, 0x20, 0xd4, 0xa5, 0xcb, 0xa7, 0x63, 0xae, 0x3b, 0x55, 0x8a, 0xf8, 0xb1, 0x54, 0xe2, 0x97, 0xd0, 0x6b, 0xa5, 0x01, 0x75, 0xe3, 0xa6, 0x1b, 0xe0, 0xfb, 0xb4, 0xba, 0x67, 0xf4, 0xca, 0xcb, 0xd1, 0xb1, 0x4b, 0x2f, 0xdf, 0x51, 0x12, 0xe7, 0x1f, 0xcb, 0x5a, 0xd1, 0x75, 0x72, 0x25, 0x10, 0x5c, 0x72, 0x10, 0xb3, 0x01, 0x1b, 0xf8, 0xdc, 0xbe, 0xda, 0xcb, 0x6a, 0x88, 0xe3, 0xb2, 0xff, 0x47, 0xef, 0xb4, 0x4b, 0x3b, 0x9a, 0x01, 0x54, 0x20, 0x45, 0xda, 0xc3, 0xc0, 0x03, 0xed, 0x68, 0x51, 0xc9, 0x99, 0x3d, 0xff, 0x61, 0x91 },
#endif
        .ds_encrypted_input_params_iv = { 0x95, 0x65, 0x6e, 0x21, 0xdd, 0x34, 0xa4, 0x8d, 0x1f, 0x57, 0xb6, 0x82, 0x59, 0x78, 0x91, 0x71 },
    },
};
